Skip to content

Enable propagating env vars to binaries started by Centipede.#2026

Merged
copybara-service[bot] merged 1 commit intomainfrom
cl/897155880
Apr 14, 2026
Merged

Enable propagating env vars to binaries started by Centipede.#2026
copybara-service[bot] merged 1 commit intomainfrom
cl/897155880

Conversation

@copybara-service
Copy link
Copy Markdown
Contributor

@copybara-service copybara-service bot commented Apr 9, 2026

Enable propagating env vars to binaries started by Centipede.

I added a new Centipede flag env_diff_for_binaries, which allows specifying
env vars to set and unset relative to the environment of the parent process.

I modified the interface of Command to match the spec of the added flag for
setting/unsetting env vars.

With the new mechanism, I was able to move the list of Bazel TEST_* vars that
need to be unset out of the engine code and into the C++ framework code.

@copybara-service copybara-service bot force-pushed the cl/897155880 branch 2 times, most recently from 875c098 to 2a89579 Compare April 14, 2026 17:35
I added a new Centipede flag `env_diff_for_binaries`, which allows specifying
env vars to set and unset relative to the environment of the parent process.

I modified the interface of `Command` to match the spec of the added flag for
setting/unsetting env vars.

With the new mechanism, I was able to move the list of Bazel TEST_* vars that
need to be unset out of the engine code and into the C++ framework code.

PiperOrigin-RevId: 899674482
@copybara-service copybara-service bot merged commit 7824a57 into main Apr 14, 2026
@copybara-service copybara-service bot deleted the cl/897155880 branch April 14, 2026 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant